# -*- coding: utf-8 -*-
#
# File: UriachFile.py
#
# Copyright (c) 2009 by []
# Generator: ArchGenXML Version 2.3
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements

from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.Archetypes import atapi
from Products.ATContentTypes.content.file import ATFile
from Products.ATContentTypes.content.file import ATFileSchema
from uriach.content.config import *
from uriach.content.interfaces import IUriachFile
from uriach.content import UriachMessageFactory as _

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((


    atapi.TextField('summary',
        required=False,
        searchable = 1,
        validators = ('isTidyHtmlWithCleanup',),
        default_output_type = 'text/x-html-safe',
        widget = atapi.RichWidget(
            label = _(u"Summary"),
            label_msgid = _(u"label_summary"),
            rows  = 15,
            i18n_domain = "uriach.content"),
        schemata="default",
    ),

),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

UriachFile_schema = ATFileSchema.copy() + \
    schema.copy()

UriachFile_schema.moveField('summary', after='description')
##code-section after-schema #fill in your manual code here
##/code-section after-schema

class UriachFile(ATFile):
    """
    """
    security = ClassSecurityInfo()

    implements(IUriachFile)

    meta_type = 'UriachFile'
    _at_rename_after_creation = True

    schema = UriachFile_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods

registerType(UriachFile, PROJECTNAME)
# end of class UriachFile

##code-section module-footer #fill in your manual code here
##/code-section module-footer


